package dptest;

public class t674 {
	public static void main(String[] args) {
		int nums[] = {1,3,5,4,7};
		int dp [] = new int [nums.length];
		dp[0] = 1;
		int res = 0;
		for(int i = 1 ; i<nums.length; i++) {
			dp[i] = 1;
			if(nums[i] > nums[i-1]) {
				dp[i] = dp[i-1]+1;
			}
			res = Math.max(res, dp[i]);
		}
		
		System.out.println(res);
	}

}
